@extends('layouts.shop_home')
@section('content')


			<b class="line"></b>
		<div class="center">
			<div class="col-main">
				<div class="main-wrap">

					<div class="user-order">

						<!--标题 -->
						<div class="am-cf am-padding">
							<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">订单管理</strong> / <small>Order</small></div>
						</div>
						<hr/>

						<div class="am-tabs am-tabs-d2 am-margin" data-am-tabs>

							<ul class="am-avg-sm-5 am-tabs-nav am-nav am-nav-tabs">
								<li class="am-active"><a href="#tab1">所有订单</a></li>
								<li><a href="#tab2">待付款</a></li>
								<li><a href="#tab3">待发货</a></li>
								<li><a href="#tab4">待收货</a></li>
								<li><a href="#tab5">待评价</a></li>
							</ul>

							<div class="am-tabs-bd">
								<div class="am-tab-panel am-fade am-in am-active" id="tab1">
									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-price">
											<td class="td-inner">单价</td>
										</div>
										<div class="th th-number">
											<td class="td-inner">数量</td>
										</div>
										<div class="th th-operation">
											<td class="td-inner">商品操作</td>
										</div>
										<div class="th th-amount">
											<td class="td-inner">合计</td>
										</div>
										<div class="th th-status">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">交易操作</td>
										</div>
									</div>

									<div class="order-main">
										<div class="order-list">
											@foreach($orderInfo as $v)

											<!--交易成功-->
											<div class="order-status5">
												<div class="order-title">
													<div class="dd-num">订单编号：<a href="javascript:;">{{$v->order_num}}</a></div>
													<span>成交时间：{{date('Y-m-d H:i:s',$v->order_time)}}</span>
													<em>用户名：{{$v->name}}</em>
												</div>
												<div class="order-content">
													<div class="order-left">
														<ul class="item-list">
															<li class="td td-item">
																<div class="item-pic">
																	<a href="#" class="J_MakePoint">
																		<img src="/upload/images/{{$v->pic}}" class="itempic J_ItemImg">
																	</a>
																</div>
																<div class="item-info">
																	<div class="item-basic-info">
																		<a href="#">
																			<p>{{$v->goods_name}}</p>
																			<p class="info-little">{{$v->style}} </p>
																		</a>
																	</div>
																</div>
															</li>
															<li class="td td-price">
																<div class="item-price">
																	{{$v->shop_price}}
																</div>
															</li>
															<li class="td td-number">
																<div class="item-number">
																	<span>×</span>{{$v->goods_num}}
																</div>
															</li>
															
														</ul>

													</div>
													<div class="order-right">
														<li class="td td-amount">
															<div class="item-amount">
																{{$v->total_pay}}
																<p>含运费：<span>10.00</span></p>
															</div>
														</li>
														<div class="move-right">
															<li class="td td-status">
																<div class="item-status">
																	<p class="Mystatus">{{$status[$v->id]}}</p>
																	<p class="order-info"><a href="orderinfo.html">订单详情</a></p>
																	
																</div>
															</li>
															<li class="td td-change" style="@if($v->order_status !== 0 ||$v->order_status == 4 || $v->refund !== 0) display:none @endif">

																<div class="am-btn am-btn-danger anniu">
																	<a href="/orderSend/{{$v->order_num}}/{{$v->goods_id}}">发货</a></div>
															</li>
														</div>
													</div>
												</div>
											</div>
											@endforeach
											
										</div>
									</div>
								</div>
								<div class="am-tab-panel am-fade am-in am-active" id="tab2">
									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-price">
											<td class="td-inner">单价</td>
										</div>
										<div class="th th-number">
											<td class="td-inner">数量</td>
										</div>
										<div class="th th-operation">
											<td class="td-inner">商品操作</td>
										</div>
										<div class="th th-amount">
											<td class="td-inner">合计</td>
										</div>
										<div class="th th-status">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">交易操作</td>
										</div>
									</div>

									<div class="order-main">
										<div class="order-list">
											@foreach($wait_pay as $v)

											<!--交易成功-->
											<div class="order-status5">
												<div class="order-title">
													<div class="dd-num">订单编号：<a href="javascript:;">{{$v->order_num}}</a></div>
													<span>成交时间：{{date('Y-m-d H:i:s',$v->order_time)}}</span>
													    <em>用户名：{{$v->name}}</em>
												</div>
												<div class="order-content">
													<div class="order-left">
														<ul class="item-list">
															<li class="td td-item">
																<div class="item-pic">
																	<a href="#" class="J_MakePoint">
																		<img src="/upload/images/{{$v->pic}}" class="itempic J_ItemImg">
																	</a>
																</div>
																<div class="item-info">
																	<div class="item-basic-info">
																		<a href="#">
																			<p>{{$v->goods_name}}</p>
																			<p class="info-little">{{$v->style}}
																				<br/> </p>
																		</a>
																	</div>
																</div>
															</li>
															<li class="td td-price">
																<div class="item-price">
																	{{$v->shop_price}}
																</div>
															</li>
															<li class="td td-number">
																<div class="item-number">
																	<span>×</span>{{$v->goods_num}}
																</div>
															</li>
														
														</ul>

													</div>
													<div class="order-right">
														<li class="td td-amount">
															<div class="item-amount">
																{{$v->total_pay}}
																<p>含运费：<span>10.00</span></p>
															</div>
														</li>
														<div class="move-right">
															<li class="td td-status">
																<div class="item-status">
																	<p class="Mystatus">{{$status[$v->id]}}</p>
																	<p class="order-info"><a href="orderinfo.html">订单详情</a></p>
																	
																</div>
															</li>
															<!-- <li class="td td-change" >

																<div class="am-btn am-btn-danger anniu">
																	<a href="/orderDel/{{$v->order_num}}/{{$v->goods_id}}">删除订单</a></div>
															</li> -->
														</div>
													</div>
												</div>
											</div>
											@endforeach
											
										</div>
									</div>
								</div>
								<div class="am-tab-panel am-fade" id="tab3">
									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-price">
											<td class="td-inner">单价</td>
										</div>
										<div class="th th-number">
											<td class="td-inner">数量</td>
										</div>
										<div class="th th-operation">
											<td class="td-inner">商品操作</td>
										</div>
										<div class="th th-amount">
											<td class="td-inner">合计</td>
										</div>
										<div class="th th-status">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">交易操作</td>
										</div>
									</div>

									<div class="order-main">
										<div class="order-list">
										@foreach($order_paid as $paid)
											<div class="order-status2">
												<div class="order-title">
													<div class="dd-num">订单编号：<a href="javascript:;">{{$paid->order_num}}</a></div>
													<span>成交时间：{{date('Y-m-d H-i-s',$paid->order_time)}}</span>
													    <em>用户名：{{$paid->name}}</em>
												</div>
												<div class="order-content">
													<div class="order-left">
														<ul class="item-list">
															<li class="td td-item">
																<div class="item-pic">
																	<a href="#" class="J_MakePoint">
																		<img src="/upload/images/{{$paid->pic}}" class="itempic J_ItemImg">
																	</a>
																</div>
																<div class="item-info">
																	<div class="item-basic-info">
																		<a href="#">
																			<p>{{$paid->goods_name}}</p>
																			<p class="info-little">{{$paid->style}} </p>
																		</a>
																	</div>
																</div>
															</li>
															<li class="td td-price">
																<div class="item-price">
																	{{$paid->shop_price}}
																</div>
															</li>
															<li class="td td-number">
																<div class="item-number">
																	<span>×</span>{{$paid->goods_num}}
																</div>
															</li>
															
															
														</ul>

														
													</div>
													<div class="order-right">
														<li class="td td-amount">
															<div class="item-amount">
																合计：{{$paid->total_pay}}
																<p>含运费：<span>10.00</span></p>
															</div>
														</li>
														<div class="move-right">
															<li class="td td-status">
																<div class="item-status">
																	<p class="Mystatus">{{$status[$paid->id]}}</p>
																	<p class="order-info"><a href="orderinfo.html">订单详情</a></p>
																</div>
															</li>
															<li class="td td-change">
																<div class="am-btn am-btn-danger anniu">
																	<a href="/orderSend/{{$paid->order_num}}/{{$paid->goods_id}}">发货</a></div>
															</li>
														</div>
													</div>
												</div>
											</div>
											@endforeach
										</div>
										
									</div>
								</div>
								<div class="am-tab-panel am-fade am-in am-active" id="tab4">
									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-price">
											<td class="td-inner">单价</td>
										</div>
										<div class="th th-number">
											<td class="td-inner">数量</td>
										</div>
										<div class="th th-operation">
											<td class="td-inner">商品操作</td>
										</div>
										<div class="th th-amount">
											<td class="td-inner">合计</td>
										</div>
										<div class="th th-status">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">交易操作</td>
										</div>
									</div>

									<div class="order-main">
										<div class="order-list">
											@foreach($order_send as $v)

											<!--交易成功-->
											<div class="order-status5">
												<div class="order-title">
													<div class="dd-num">订单编号：<a href="javascript:;">{{$v->order_num}}</a></div>
													<span>成交时间：{{date('Y-m-d H:i:s',$v->order_time)}}</span>
													    <em>店铺：{{$v->name}}</em>
												</div>
												<div class="order-content">
													<div class="order-left">
														<ul class="item-list">
															<li class="td td-item">
																<div class="item-pic">
																	<a href="#" class="J_MakePoint">
																		<img src="/upload/images/{{$v->pic}}" class="itempic J_ItemImg">
																	</a>
																</div>
																<div class="item-info">
																	<div class="item-basic-info">
																		<a href="#">
																			<p>{{$v->goods_name}}</p>
																			<p class="info-little">{{$v->style}}
																				<br/> </p>
																		</a>
																	</div>
																</div>
															</li>
															<li class="td td-price">
																<div class="item-price">
																	{{$v->shop_price}}
																</div>
															</li>
															<li class="td td-number">
																<div class="item-number">
																	<span>×</span>{{$v->goods_num}}
																</div>
															</li>
															<!-- <li class="td td-operation">
																<div class="item-operation">
																	<a href="/dopay/{{$v->order_num}}/{{$v->goods_id}}">付款</a>
																</div>
															</li> -->
														</ul>

													</div>
													<div class="order-right">
														<li class="td td-amount">
															<div class="item-amount">
																{{$v->total_pay}}
																<p>含运费：<span>10.00</span></p>
															</div>
														</li>
														<div class="move-right">
															<li class="td td-status">
																<div class="item-status">
																	<p class="Mystatus">{{$status[$v->id]}}</p>
																	<p class="order-info"><a href="orderinfo.html">订单详情</a></p>
																	
																</div>
															</li>
															<!-- <li class="td td-change" >

																<div class="am-btn am-btn-danger anniu">
																	<a href="/orderDel/{{$v->order_num}}/{{$v->goods_id}}">删除订单</a></div>
															</li> -->
														</div>
													</div>
												</div>
											</div>
											@endforeach
											
										</div>
									</div>
								</div>
								<div class="am-tab-panel am-fade am-in am-active" id="tab5">
									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-price">
											<td class="td-inner">单价</td>
										</div>
										<div class="th th-number">
											<td class="td-inner">数量</td>
										</div>
										<div class="th th-operation">
											<td class="td-inner">商品操作</td>
										</div>
										<div class="th th-amount">
											<td class="td-inner">合计</td>
										</div>
										<div class="th th-status">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">交易操作</td>
										</div>
									</div>

									<div class="order-main">
										<div class="order-list">
											@foreach($order_done as $v)

											<!--交易成功-->
											<div class="order-status5">
												<div class="order-title">
													<div class="dd-num">订单编号：<a href="javascript:;">{{$v->order_num}}</a></div>
													<span>成交时间：{{date('Y-m-d H:i:s',$v->order_time)}}</span>
													    <em>用户名：{{$v->name}}</em>
												</div>
												<div class="order-content">
													<div class="order-left">
														<ul class="item-list">
															<li class="td td-item">
																<div class="item-pic">
																	<a href="#" class="J_MakePoint">
																		<img src="/upload/images/{{$v->pic}}" class="itempic J_ItemImg">
																	</a>
																</div>
																<div class="item-info">
																	<div class="item-basic-info">
																		<a href="#">
																			<p>{{$v->goods_name}}</p>
																			<p class="info-little">{{$v->style}}
																				<br/> </p>
																		</a>
																	</div>
																</div>
															</li>
															<li class="td td-price">
																<div class="item-price">
																	{{$v->shop_price}}
																</div>
															</li>
															<li class="td td-number">
																<div class="item-number">
																	<span>×</span>{{$v->goods_num}}
																</div>
															</li>
															
														</ul>

													</div>
													<div class="order-right">
														<li class="td td-amount">
															<div class="item-amount">
																{{$v->total_pay}}
																<p>含运费：<span>10.00</span></p>
															</div>
														</li>
														<div class="move-right">
															<li class="td td-status">
																<div class="item-status">
																	<p class="Mystatus">{{$status[$v->id]}}</p>
																	<p class="order-info"><a href="orderinfo.html">订单详情</a></p>
																	
																</div>
															</li>
															<!-- <li class="td td-change" >

																<div class="am-btn am-btn-danger anniu">
																	<a href="/orderDel/{{$v->order_num}}/{{$v->goods_id}}">删除订单</a></div>
															</li> -->
														</div>
													</div>
												</div>
											</div>
											@endforeach
											
										</div>
									</div>
								</div>
							</div>

						</div>
					</div>
				</div>

@endsection